package com.sy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sy.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @className: OrdersMapper
 * @author: Mr.Liu
 * @date: 2025/11/11 16:26
 * @Version: 1.0
 * @description:
 */
public interface OrdersMapper extends BaseMapper<Orders> {
    /*
     * @Author Mr.Liu
     * @Description //TODO 我的订单分页及条件查询
     * @Date 14:59 2025/11/13
     * @Param [uid, keyword, status, startTime, endTime]
     * @return java.util.List<com.sy.pojo.Orders>
     **/
    List<Orders> queryOrdersByUid(@Param("uid") Integer uid,
                                  @Param("keyword") String keyword,
                                  @Param("status") Integer status,
                                  @Param("startTime") LocalDateTime startTime,
                                  @Param("endTime") LocalDateTime endTime);
}
